home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / python-dbus.postinst < prev    next >
Text File  |  2009-05-06  |  753b  |  26 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt "0.71-3"; then
  6.     echo "Remove stale byte-compiled files..."
  7.     rm -f /usr/lib/python2.[45]/site-packages/dbus.pyc
  8.     rm -f /usr/lib/python2.[45]/site-packages/dbus.pyo
  9.     rm -f /usr/lib/python2.[45]/site-packages/dbus/*.pyc
  10.     rm -f /usr/lib/python2.[45]/site-packages/dbus/*.pyo
  11.     for v in 2.4 2.5; do
  12.         if [ -e /usr/lib/python${v}/site-packages/dbus ]; then
  13.             rmdir --ignore-fail-on-non-empty \
  14.                 /usr/lib/python${v}/site-packages/dbus
  15.         fi
  16.     done
  17. fi
  18.  
  19. # Automatically added by dh_pysupport
  20. if which update-python-modules >/dev/null 2>&1; then
  21.     update-python-modules  python-dbus.public
  22. fi
  23. # End automatically added section
  24.  
  25.  
  26.